<template>
  <div class="bubble">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: "index"
}
</script>

<style scoped lang="scss">

.bubble{
  height: 30px;
  line-height: 30px;
  text-align: center;
  position: relative;
  border: 1px solid #3184FF;
}
.bubble::before{
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  /* 箭头靠右边 */
  top: 10px;
  right: -8px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #3184FF;
  /* 箭头靠下边 */
  /* left: 20px;
  bottom: -15px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 15px solid teal; */
  /* 箭头靠左边 */
  /* top: 13px;
  left: -15px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 15px solid teal; */
  /* 箭头靠下边 */
  /* left: 20px;
  top: -15px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 15px solid teal; */
}
.bubble::after{
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  /* 箭头靠右边 */
  top: 10px;
  right: -6px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #fff;
  /* 箭头靠下边 */
  /* left: 20px;
  bottom: -13px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 15px solid #fff; */
  /* 箭头靠左边 */
  /* top: 13px;
  left: -13px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 15px solid #fff; */
  /* 箭头靠下边 */
  /* left: 20px;
  top: -13px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 15px solid #fff; */
}

</style>
